package org.adream.account.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

public class UserEntity extends PubClass implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6239854173472248118L;

	private String uid;

	private String uname;

	private String email;

	private String phone;

	private String sex; // 性别 M:男 F：女

	@JSONField(format = "yyyy-MM-dd")
	private Date birthday;

	private Integer province;

	private Integer city;

	private Integer area;

	private String intro; // 个人简介

	private String realName; // 真实姓名

	private String nickName; // 昵称

	private String headimgurl;

	private String unionid;

	private String qqUnionid; // qq unionid

	private String apUnionid; // aliPay unionid

	private String mbUnionid; // microblog unionid
	
	private String verified; // 是否已认证
	
	private String isBlack; // 是否拉黑   不用布尔值
	
	private Integer isChangedUname;	//是否更改过uname 手机用户% 认为未更改过uname
	
	private List<RoleEntity> roles;
	
	private List<String> rleIds;
	
	private String resIds;

	private String qr;
	
	private String ip;
	
	private String ipInfo;
	
	private int port;
	
	//积分数
	private Integer integral;

	public UserEntity(String uid, String uname, String email, String phone, String sex, String intro,
			String unionid, String realName, List<RoleEntity> roles,String qr) {
		super();
		this.uid = uid;
		this.uname = uname;
		this.email = email;
		this.phone = phone;
		this.sex = sex;
		this.intro = intro;
		this.unionid = unionid;
		this.realName = realName;
		this.roles = roles;
		this.qr = qr;
	}

	public UserEntity() {
		super();
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getProvince() {
		return province;
	}

	public void setProvince(Integer province) {
		this.province = province;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public Integer getArea() {
		return area;
	}

	public void setArea(Integer area) {
		this.area = area;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadimgurl() {
		return headimgurl;
	}

	public void setHeadimgurl(String headimgurl) {
		this.headimgurl = headimgurl;
	}

	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}

	public String getQqUnionid() {
		return qqUnionid;
	}

	public void setQqUnionid(String qqUnionid) {
		this.qqUnionid = qqUnionid;
	}

	public String getApUnionid() {
		return apUnionid;
	}

	public void setApUnionid(String apUnionid) {
		this.apUnionid = apUnionid;
	}

	public String getMbUnionid() {
		return mbUnionid;
	}

	public void setMbUnionid(String mbUnionid) {
		this.mbUnionid = mbUnionid;
	}

	public String getVerified() {
		return verified;
	}

	public void setVerified(String verified) {
		this.verified = verified;
	}
	
	public List<RoleEntity> getRoles() {
		return roles;
	}

	public void setRoles(List<RoleEntity> roles) {
		this.roles = roles;
	}
	
	public List<String> getRleIds() {
		return rleIds;
	}

	public void setRleIds(List<String> rleIds) {
		this.rleIds = rleIds;
	}
	
	public String getResIds() {
		return resIds;
	}

	public void setResIds(String resIds) {
		this.resIds = resIds;
	}
	 
	
	public String getIsBlack() {
		return isBlack;
	}

	public void setIsBlack(String isBlack) {
		this.isBlack = isBlack;
	}

	public Integer getIsChangedUname() {
		return isChangedUname;
	}

	public void setIsChangedUname(Integer isChangedUname) {
		this.isChangedUname = isChangedUname;
	}

	public String getQr() {
		return qr;
	}

	public void setQr(String qr) {
		this.qr = qr;
	}

	public Integer getIntegral() {
		return integral;
	}

	public void setIntegral(Integer integral) {
		this.integral = integral;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getIpInfo() {
		return ipInfo;
	}

	public void setIpInfo(String ipInfo) {
		this.ipInfo = ipInfo;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	@Override
	public String getTable() {
		return "acc_user";
	}
}